<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: luanzg <782114271@qq.com>
// +----------------------------------------------------------------------
use think\facade\Route;
use app\common\middleware\Admin;

Route::group(function () {
    // 权限请求路由规则    
    Route::get('system/baseinfo', 'baseinfo');
    Route::post('system/baseseting', 'baseseting');

    // 设备管理栏目，相关api
    Route::get('system/device', 'deviceList');
    Route::post('system/device', 'deviceAdd');
    Route::put('system/device', 'deviceEdit');
    Route::delete('system/device', 'deviceDel');

    // 系统升级，相关api
    Route::get('system/sysversion', 'sysversion');

})->prefix('System/')->allowCrossDomain(headers())->middleware(Admin::class);
